package org.pageley.games.connected.domain.vehicles;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

import org.pageley.games.domain.Location;
import org.pageley.games.domain.environment.Environment;
import org.pageley.games.domain.event.EventListener;

public class SimpleVehicle implements Vehicle {

	private Date constructionDate;
	private UUID id;
	private VehicleModel model;
	private String name;
	private Location location;
	private Set<EventListener> eventListeners;
	
	public SimpleVehicle(Date constructionDate, UUID id, VehicleModel model, String name) {
		this.constructionDate = constructionDate;
		this.id = id;
		this.model = model;
		this.name = name;
		this.eventListeners = new HashSet<EventListener>();
	}

	@Override
	public Date getConstructionDate() {
		return this.constructionDate;
	}

	@Override
	public VehicleModel getModel() {
		return this.model;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public void addEventListener(EventListener eventListener) {
		this.eventListeners.add(eventListener);
	}

	@Override
	public UUID getId() {
		return this.id;
	}

	@Override
	public Location getLocation() {
		return this.location;
	}

	@Override
	public void setEnvironment(Environment environment) {
	}

}
